package com.unmarshaller.propertiesunmarshaller;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

import javax.xml.bind.PropertyException;

public class PropertyUtil 
{
	public static Properties load(File file) throws PropertyException
	{
		Properties prop = new Properties();
		
		try {
			prop.load(new FileInputStream(file));
		} catch (IOException e) 
		{
			throw new PropertyException("load file:" + file.getPath() + " is error!");
		}
		
		return prop;
	}
}
